# Contributor: Thomas Deutsch <thomas@tuxpeople.org>
# Maintainer: Thomas Deutsch <thomas@tuxpeople.org>
pkgname=lazydocker
pkgver=0.12
pkgrel=5
pkgdesc="Simple terminal UI for both docker and docker-compose"
url="https://github.com/jesseduffield/lazydocker"
arch="all"
license="MIT"
makedepends="go"
options="chmod-clean !check" # checks failing, reported upstream: https://github.com/jesseduffield/lazydocker/issues/236
source="$pkgname-$pkgver.tar.gz::https://github.com/jesseduffield/lazydocker/archive/v$pkgver.tar.gz"

build() {
	GOPATH="$srcdir" go build
}

check() {
	GOPATH="$srcdir" go test ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/lazydocker
}


sha512sums="59198b2f8e7c7c0686d4b1ddef3f585411e672055ede5f6a279c28cd8d94ba619078658d5b8f6c43915667f8180feb7d9407ea1003b3bc3b642e1502a165c78e  lazydocker-0.12.tar.gz"
